package net.jlnx.Uebung1.data;

public class Rechteck extends FigMZLA {

	public Rechteck(int posX, int posY, int a, int b) {
		super(posX, posY, a, b);
		super.figurenTyp = "Rechteck";
	}

	public double berechneFlaeche() {
		double flaeche = super.A * super.B;
		return flaeche;
	}

}